package com.eaero.usercenter;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;


/**
 * @author Queal
 */
@SpringBootApplication
@ServletComponentScan
@EnableScheduling
@EnableDiscoveryClient
@EnableFeignClients("com.eaero")
public class UserCenterBootstrapApplication {

    public static void main(String[] args) {
        // 关闭热部署, 在properties中配置, 虽然不会自动扫描, 但是 RestartClassLoader还会初始化
        System.setProperty("spring.devtools.restart.enabled", "false");
        System.setProperty("spring.cloud.nacos.config.import-check.enabled", "false");
        SpringApplication.run(UserCenterBootstrapApplication.class, args);
    }

}
